

<div class="pad-10">

	<div class="navigate">
		<h1>地址添加</h1>

            <span class="ui-button ui-button-morange fr">
                    <a class="ui-button-text fr" href="/index.php/Admin/UserAddress/">地址列表</a>
            </span>
  	</div>
  	
  	
<div class="col-tab">
<ul class="tabBut cu-li">
	<li id="tab_setting_1" class="on"
		onclick="SwapTab('setting','on','',3,1);">地址添加</li>
	<li id="tab_setting_2" class=""
		onclick="SwapTab('setting','on','',3,2);">批量添加</li>
	<li id="tab_setting_3" class=""
		onclick="SwapTab('setting','on','',3,3);">批量修改</li>
</ul>

<!-- 添加  -->
<div id="div_setting_1" class="contentList pad-10">


<form id="form_user_address" action="/index.php/Admin/UserAddress/add_do" method="post">

<table width="100%" cellpadding="2" cellspacing="1" class="table_form">

	<tr class="hidden">
		<th width="100">客户:</th>
		<td>
			
			<select name="user_id" id="user_id" style="width:300px;">
				<option value="0">公有</option>
				<volist name="users" id="u">
				<option value="{$u.user_id}" <eq name="u.user_id" value="$user_id"> selected</eq>>[{$u.user_id}]&nbsp;&nbsp;&nbsp;&nbsp;{$u.user_name}&nbsp;&nbsp;&nbsp;&nbsp;({$u.mobile_phone})</option>
				</volist>
          	</select>
          	<span class="color-red" title="必填">*</span>
		</td>
	</tr>
	
	<tr class="hidden">
		<th width="100">所在地:</th>
		<td>
			<input type="text" name="location" id="location" class="input-text"
			value="" style="width:300px;">
			<span class="color-red" title="必填">*</span>
		</td>
	</tr>
	
	<tr>
		<th width="100">收货人:</th>
		<td>
			<input type="text" name="consignee" id="consignee" class="input-text"
			value="" style="width:300px;">
			<span class="color-red" title="必填">*</span>
		</td>
	</tr>
	
	<tr>
		<th width="100">收货地址:</th>
		<td>
			<input type="text" name="address" id="address" class="input-text"
			value="" style="width:300px;">
			<span class="color-red" title="必填">*</span>
		</td>
	</tr>

	<tr>
		<th width="100">手机:</th>
		<td>
			<input type="text" name="mobile_phone" id="mobile_phone" class="input-text"
			value="" style="width:300px;">
			<span class="color-red" title="必填">*</span>
		</td>
	</tr>
	
	<tr class="hidden">
		<th width="100">邮编:</th>
		<td>
			<input type="text" name="zipcode" id="zipcode" class="input-text"
			value="" style="width:300px;">
		</td>
	</tr>
	
	<tr>
		<th width="100">状态:</th>
		<td>
			<input type="radio" id="disabled" name="disabled" value="1" />
			<label for="disabled">禁用</label>
			
			<input type="radio" id="enabled" name="disabled" value="0" checked />
			<label for="enabled">启用</label>
			<span class="color-red" title="必填">*</span>
		</td>
	</tr>
	<tr>
		<th width="100"></th>
		<td>
			<input type="submit" class="button" value="添加" id="btnAdd" />
		</td>
	</tr>
	
</table>
</form>

</div>
<!-- 添加  -->


<!-- 批量添加  -->
<div id="div_setting_2" class="contentList pad-10 hidden">

<form id="form_file" name="form_file" enctype="multipart/form-data" action="/index.php/Admin/UserAddress/import_add_do" method="post">
<table width="100%" cellpadding="2" cellspacing="1" class="table_form">
	<tr>
		<th width="100"></th>
		<td>
				<a href="/Upload/admin/user_address/user_address.csv" target="_blank">下载地址模板</a>
			
				<input type="file" name="user_address" />
				<input id="btnUpload" type="submit" class="button" value="上传地址" />
						
		</td>
	</tr>
</table>
</form>
</div>
<!-- 批量添加  -->




<!-- 批量修改  -->
<div id="div_setting_3" class="contentList pad-10 hidden">

<form id="form_update" name="form_update" enctype="multipart/form-data" action="/index.php/Admin/UserAddress/import_update_do" method="post">
<table width="100%" cellpadding="2" cellspacing="1" class="table_form">
	<tr>
		<th width="100"></th>
		<td>
				<a href="/index.php/Admin/UserAddress/export_csv" target="_blank">下载地址列表</a>
			
				<input type="file" name="user_address" />
				<input id="btnUpdateUpload" type="submit" class="button" value="上传地址" />
						
		</td>
	</tr>
</table>
</form>
</div>
<!-- 批量修改  -->



</div>
</div>



<script type="text/javascript" src="/Js/common.js"></script>
<script type="text/javascript" src="/Js/jquery.form.js"></script>
<script type="text/javascript" src="/Js/adm/user_address/add.js"></script>